Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add go routine to create partition tables periodically #364

Merged
merged 1 commit into from
Nov 27, 2020

Conversation

krisis
Copy link
Member

@krisis krisis commented Nov 25, 2020

No description provided.

@krisis krisis requested a review from donatello November 25, 2020 00:03
logsearchapi/server/partitions.go Show resolved Hide resolved
halfDayLater := when.Add(12 * time.Hour)
for _, table := range []Table{auditLogEventsTable, requestInfoTable} {
partitionExists, err := c.checkPartitionTableExists(bgCtx, table.Name, halfDayLater)
log.Printf("Error while checking if partition for %s exists %s", table.Name, err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For logging since is is part of k8s start using klog? which provides more k8s friendly logging?

@donatello donatello merged commit ed92b1a into minio:master Nov 27, 2020
jmontleon added a commit to jmontleon/operator that referenced this pull request Jul 23, 2024
When using psql, errors in applying the sql generated from the dump do
not reach bash without adding additional options. psql only generates a
non-zero exit code when something fatal happens, like being unable to
connect to the database host. So, all ansible sees is exit code 0 from
psql and continues on, as if everything is great.

I did some reading up on postgres modules for ansible and we do not need
to shell out to do this, so I have implemented it with modules.

Since handling the actual migration with the ansible modules I have not
encountered a failure. Continuing to run upgrades to test ...

---------

Signed-off-by: Jason Montleon <jmontleo@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants